clear all;

cd ..; cd ..; cd ..;
load('code_main_model\6_implied_w_r\computation_results\data.mat',...
    'credit','deposit','nmkt','period_trans','nyears');
cd 'code_figure_table\OA\Figure OA48';

total_loan=sum(credit(1,:));

% 86 loan demand
loan_demand86=credit(1,:)./total_loan;

% 86 loan demand - deposits
flow86=(credit(1,:)-deposit(1,:))./total_loan;

% growth in loan demand
growth=(credit(11,:)./credit(1,:))-1;